package drinkshop;

import java.util.Scanner;

/**
 * @Auther: fei
 * @Date: 2021/6/5 - 06 - 05 - 22:35
 * @Description: drinkshop
 * @version: 1.0
 */
public class test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你要购买的饮品：1.可乐 2.咖啡 3.奶茶");
        int choice = sc.nextInt();
        //通过工厂获取饮品
        Drink drink = DrinkStore.getDrink(choice);
        System.out.println(drink.showDrink());
    }
}
